package co.edu.javeriana.touresbalon.oms.webservices;

import co.edu.javeriana.touresbalon.oms.entities.Customer;
import co.edu.javeriana.touresbalon.oms.services.ClientesBeanServiceLocal;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 *
 * @author ada
 */
@WebService(targetNamespace = "http://TouresBalonOMS/WebServices", portName="ClientesService", serviceName = "ClientesEndpointService")
@Stateless()
public class ClientesEndpointService {
    @EJB
    private ClientesBeanServiceLocal clientesBean;

    @WebMethod(operationName = "creacionCliente")
    public boolean creacionCliente(@WebParam(name = "cliente") Customer cliente) {
        return clientesBean.creacionCliente(cliente);
    }

    @WebMethod(operationName = "autenticacionCliente")
    public Customer autenticacionCliente(@WebParam(name = "id") String id, @WebParam(name = "password") String password) {
        return clientesBean.autenticacionCliente(id, password);
    }
    
}
